cmake_minimum_required(VERSION 3.10)
project(ThirdParty)
set(CMAKE_CXX_STANDARD 20)


add_subdirectory(Libs/libjpeg)
set_target_properties(jpeg PROPERTIES DEBUG_POSTFIX "d")


add_subdirectory(Libs/libpng)


#启用 BUILD_SHARED_LIBS，以便 freetype 构建动态库
set(BUILD_SHARED_LIBS ON)
add_subdirectory(Libs/freetype)


add_custom_target(
  ThirdParty
  DEPENDS libjpeg libpng freetype
  COMMENT "Building Third Party Libraries"
)

